<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="http://cdn.ronghub.com/RongIMLib-2.5.9.js"></script>
</head>
<body>

</body>
<script>
    RongIMLib.RongIMClient.init('qf3d5gbjq988h'); //开发者后台 -> 基本信息 获取
    /* 开发者后台获取或 Server API */
    var token = 'SYSXLAerEguenbtyyZGkdKMu+Jucb6olKpx/lNwdupA=@hnfr.cn.rongnav.com;hnfr.cn.rongcfg.com';
    RongIMClient.connect(token, {
        onSuccess: function(userId) {
            console.log('连接成功, 用户 ID 为', userId);
            // 连接已成功, 此时可通过 getConversationList 获取会话列表并展示
        },
        onTokenIncorrect: function() {
            console.log('连接失败, 失败原因: token 无效');
        },
        onError: function(errorCode) {
            console.log('连接失败, 失败原因: ', errorCode);
        }
    });
</script>
</html>